import Vue from 'vue';
import App from './App.vue';
import indexRouter from './router';
import store from './store';
import axios from 'axios';

Vue.config.productionTip = false
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token');
  return config;
});

Vue.prototype.$http = axios;

new Vue({
  router: indexRouter,
  store,
  render: h => h(App)
}).$mount('#app')
